.location-tester {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  margin-top: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
}

.tester-header {
  padding: 8px 12px;
  background-color: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.tester-header h2 {
  margin: 0;
  font-size: 14px;
  color: #333;
  font-weight: 600;
}

.toggle-icon {
  color: #3366FF;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.expanded .toggle-icon {
  transform: rotate(180deg);
}

.tester-content {
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.preset-locations {
  margin-bottom: 10px;
}

.preset-locations h3 {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #555;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.preset-button {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-button:hover {
  background-color: #e0e0e0;
}

.tester-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-container {
  display: flex;
  gap: 8px;
}

.input-group {
  flex: 1;
}

.input-group label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #555;
}

.input-group input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
}

.submit-button {
  width: 100%;
  padding: 10px 15px;
  background-color: #3366FF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.submit-button:hover:not(:disabled) {
  background-color: #2851cc;
}

.submit-button:active:not(:disabled) {
  background-color: #1f46b3;
}

.submit-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

.loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.success-message, .error-message, .warning-message {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  font-size: 14px;
}

.success-message {
  background-color: #e8f5e9;
  color: #2e7d32;
  border-left: 4px solid #2e7d32;
}

.error-message {
  background-color: #ffebee;
  color: #c62828;
  border-left: 4px solid #c62828;
}

.warning-message {
  background-color: #fff8e1;
  color: #f57c00;
  border-left: 4px solid #f57c00;
}

.tester-help {
  margin-top: 15px;
  padding: 10px;
  background-color: #e3f2fd;
  border-radius: 4px;
  font-size: 13px;
  color: #0d47a1;
}

.tester-help p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-send::before {
  content: "📍";
}

.icon-info::before {
  content: "ℹ️";
}

/* 响应式设计 */
@media (max-width: 768px) {
  .input-container {
    flex-direction: column;
  }
  
  .input-group {
    width: 100%;
  }
}

/* 坐标系选择器样式 */
.coord-type-selector {
  margin-bottom: 15px;
}

.coord-type-selector > label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.radio-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.radio-label input[type="radio"] {
  margin-right: 6px;
  cursor: pointer;
  accent-color: #3366FF;
}

.radio-label span {
  font-size: 14px;
  color: #333;
}

/* 坐标信息样式 */
.coord-info {
  margin-top: 10px;
  padding: 8px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 12px;
}

.coord-info p {
  margin: 5px 0;
  color: #666;
}

.coord-info strong {
  color: #333;
}

/* 数据格式示例样式 */
.data-format-example {
  margin-top: 15px;
  border-top: 1px dashed #b3e5fc;
  padding-top: 12px;
}

.data-format-example h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #0277bd;
  font-weight: 600;
}

.format-box {
  background-color: #f5f5f5;
  border-radius: 6px;
  padding: 12px;
  border-left: 4px solid #3366FF;
}

.format-box code {
  display: block;
  padding: 8px;
  background-color: #e8eaf6;
  border-radius: 4px;
  color: #3949ab;
  font-family: monospace;
  font-size: 14px;
  margin-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
}

.format-description {
  margin: 8px 0;
  font-size: 13px;
  color: #555;
}

.format-description code {
  background-color: #e8eaf6;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: monospace;
  color: #3949ab;
  display: inline;
}

.format-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #666;
  font-style: italic;
}

.tcp-hint {
  margin: 10px 0 0;
  font-size: 12px;
  color: #555;
  font-weight: 500;
} 